﻿using NodeBasedSkillEditor.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NodeBasedSkillEditor.Model.CommandHistory
{
    public class Record_PortCluster
    {
        public string PortClusterDataJson;
        public uint PortClusterGroupId;
        public int IndexInPortClusterGroup;

        public Record_PortCluster(VM_PortCluster portClusterVM)
        {
            PortClusterDataJson = SwifterJson.XFormatter.ToJson(portClusterVM.BindData);
            PortClusterGroupId = portClusterVM.ParentGroup.Id;
            IndexInPortClusterGroup = portClusterVM.IndexInParentGroup;
        }
    }
}
